package com.wanlian.netty.msg.Device;

import com.wanlian.File.NetFileInfo;
import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.MsgType;

/**
 *  文件上传判断是否有空间
 */
public class FileuploadCheckReqMsg extends BaseMsg {
    private NetFileInfo fileInfo;

    public FileuploadCheckReqMsg(){
        super();
        this.setType(MsgType.DEVICE_FILE_UPLOADCheck_REQ);
    }

    public NetFileInfo getFileInfo() {
        return fileInfo;
    }

    public void setFileInfo(NetFileInfo fileInfo) {
        this.fileInfo = fileInfo;
        this.setContent(JsonStringUtil.writeValueAsString(fileInfo));
    }
}
